import request from '@/utils/request'

// 查询园区设施列表
export function listOpmEnvFacility(query) {
  return request({
    url: '/environment/opmEnvFacility/list',
    method: 'get',
    params: query
  })
}

// 查询园区设施详细
export function getOpmEnvFacility(id) {
  return request({
    url: '/environment/opmEnvFacility/' + id,
    method: 'get'
  })
}

// 新增园区设施
export function addOpmEnvFacility(data) {
  return request({
    url: '/environment/opmEnvFacility',
    method: 'post',
    data: data
  })
}

// 修改园区设施
export function updateOpmEnvFacility(data) {
  return request({
    url: '/environment/opmEnvFacility',
    method: 'put',
    data: data
  })
}

// 删除园区设施
export function delOpmEnvFacility(id) {
  return request({
    url: '/environment/opmEnvFacility/' + id,
    method: 'delete'
  })
}
